<{include file="public/header.html"}> 
	<!--中间内容-->
	<div class="w1180-con mt20">
		<div class="duobao-detail">
			<div class="breadcrumb mb20">
                            <a href="<{eval url('lottery')}>">全部&nbsp;＞</a>&nbsp;<i><{$item['title']}></i>
			</div>
			<div class="product w880 fl">
				<div class="head">
					<div class="img fl">
						<img src="<{$item['thumb']}>" alt="<{$item['title']}>" />
					</div>
					<div class="con fr">
                                            <dl id="goods-<{$item['goods_id']}>">
							<dt class="title">
								<h4><{$item['title']}></h4>
								<p class="tips mt10">本商品由第三方商家提供并发货，颜色随机，含保险，不含购置税及上牌费。参与前请仔细阅读活动说明！</p>
							</dt>
                                                        <div class="product-progress">
                                                            <!-- 倒计时 显示 -->
                                                            <{if $item['q_showtime'] == "Y"}>
                                                            <dd class="duobao-countdown mt10">
                                                                    <p class="mb20 mt10 f16">【第<{$item['qishu']}>期】即将揭晓：</p>
                                                                    <div class="count-down" data-time="<{$item['times']}>">
                                                                            <b class='t_minuter1'>0</b>
                                                                            <b class='t_minuter2'>0</b>
                                                                            <em class='boss-red divide'>:</em>
                                                                            <b class='t_second1'>0</b>
                                                                            <b class='t_second2'>0</b>
                                                                            <em class='boss-red divide'>:</em>
                                                                            <b class='t_minsecond1'>0</b>
                                                                            <b class='t_minsecond2'>0</b>
                                                                    </div>
                                                            </dd>
                                                            <script>$(function(){run_time_show((parseInt(<{$item['times']}>) * 1000) + (new Date().getTime()),<{$item['goods_id']}>);});</script>
                                                            <{else}>
                                                            <!-- 倒计时结束 隐藏 -->
                                                            <!-- 中奖人 -->
                                                            <dd class="winner mt20">
                                                                    <div class="winner-num">
                                                                            <b class="winner-tag"></b>
                                                                            <div class="border">
                                                                                    <p>【第<{$item['qishu']}>期】幸运号码&nbsp;&nbsp;<i><{$item['q_user_code']}></i></p>
                                                                            </div>
                                                                    </div>
                                                                    <div class="winner-user mt15">
                                                                            <div class="user fl ml50">
                                                                                <a href="<{$item['space_url']}>" class="header fl">
                                                                                            <img src="<{$item['head_img']}>"/>
                                                                                    </a>
                                                                                    <div class="fl ml20">
                                                                                            <p class="name"><a href="<{$item['space_url']}>"><{$item['nickname']}></a></p>
                                                                                            <p class="follow"><a href="javascript:void(0);" class="duo-fans-btn" data-uid="<{$item['q_uid']}>" data-value="<{$item['is_fan']}>"><{if $item['is_fan']}>已关注<{else}>+关注<{/if}></a></p>
                                                                                    </div>
                                                                                    <div class="clear"></div>
                                                                            </div>
                                                                            <div class="txt fl ml20">
                                                                                    <b class="fl"></b>
                                                                                    <div class="fl">
                                                                                        <p>本期参与：<{$user_shop_number}>人次<a href="javascript:void(0);" class="ml10 see-code" data-sid="<{$item['goods_id']}>">查看</a></p>
                                                                                            <p>揭晓时间：<{$item['q_end_time']}></p>
                                                                                            <p>购买时间：<{$user_shop_time}></p>
                                                                                    </div>
                                                                            </div>
                                                                            <div class="clear"></div>
                                                                    </div>
                                                            </dd>
                                                            <{/if}>
                                                        </div>
							<!-- 中奖人 end -->
							<dd class="qishu mt10">
								【 最新一期 】
							</dd>
							<dd class="duobao-progress duobao-progress-new mt10">
								<div class="loadbox fl">
									<dl class="big-barbox">
										<dd class="barline">
                                                                                    <div data-current="<{$next_item['canyurenshu']}>" data-total="<{$next_item['zongrenshu']}>" style="width:0px;" class="charts"></div>
										</dd>
									</dl>
									<div class="num fl mt10 tl">
										<p><{$next_item['canyurenshu']}></p>
										<i>已参与人次</i>
									</div>
									<div class="num fr mt10 tr">
										<p><{$next_item['shenyurenshu']}></p>
										<i>剩余人次</i>
									</div>
									<div class="clear"></div>
								</div>
                                                            <a href="<{$next_item['detail_url']}>" class="btn fr">立即行动</a>
								<div class="clear"></div>
							</dd>
						</dl>
					</div>
					<div class="clear"></div>
				</div>
				<script type="text/javascript">var shopinfo={'shopid':<{$item['id']}>,'money':<{$item['yunjiage']}>,'shenyu':<{$item['shenyurenshu']}>};</script>
				<div class="content mt20">
                                    <div class="tab-list">
                                        <ul>
                                            <{if $item['q_showtime'] == "Y"}>
                                            <li class="active">商品详情</li>
                                            <{else}>
                                            <li class="active">计算结果</li>
                                            <{/if}>
                                            <li class="canyu">参与小伙伴</li>
                                            <li>往期中奖</li>
                                        </ul>
                                    </div>
                                    <div class="tab-con mt20">
                                        <{if $item['q_showtime'] == "Y"}>
                                        <div class="img-detail list" style="display: block;">
                                                <{$item['content']}>
                                        </div>
                                        <{else}>
                                        <div class="prize-detail list mt15" style="display: block;">
                                                <p class="last-time">截止该商品最后购买时间【<{$item['q_content'][0]["time_str"]}>】网站所有商品的最后100条购买时间(时、分、秒、毫秒)记录</p>
                                                <div class="count-result">
                                                        <div class="show-result">
                                                                <div class="sum all-add"><{$item['q_counttime']}></div>
                                                                <div class="sum people-num"><{$item['zongrenshu']}></div>
                                                                <div class="sum lucky-num"><{$item['q_user_code']}></div>
                                                        </div>
                                                        <div class="result-table">
                                                                <table class="time-list">
                                                                    <{foreach from=$item['q_content'] item=val key=key}>
                                                                        <tr>
                                                                            <td><{$val['index']}></td>
                                                                            <td class="w185"><{$val['time_str']}></td>
                                                                            <td class="width-100 boss-red"><{$val['timeadd']}>
                                                                                <{if ($key+1)< 100}>
                                                                                <!--<b class="icon-com place icon-add"></b>-->
                                                                                <{/if}>
                                                                            </td>
                                                                            <td><a href="<{$val['space_url']}>"><img src="<{$val['head_img']}>"/><{$val['nickname']}></a></td>
                                                                            <td><{$val['gonumber']}>人次</td>
                                                                            <td><span class="result-detail"><a href="<{$val['lottery_url']}>">【第<{$val['shopqishu']}>期】<{$val['shopname']}></a></span></td>
                                                                        </tr>
                                                                    <{/foreach}>
                                                                </table>
                                                        </div>
                                                        <a class="count-more openup" onselectstart="return false">展开全部100条数据 ↓</a>
                                                </div>
                                        </div>
                                        <{/if}>
                                        <div class="list participateIn" id="buy-list-box">
                                            <{if $buyers}>
                                                <table>
                                                        <tr>
                                                                <th>参与伙伴</th><th>参与时间</th><th>参与人次</th><th>IP</th>
                                                        </tr>
                                                        <tbody class="list-box">
                                                        <{foreach from=$buyers item=val}>
                                                        <tr>
                                                            <td><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>" /><em><{$val['nickname']}></em></a></td>
                                                                <td class="time"><{$val['time']}></td>
                                                                <td>
                                                                        <span class="num"><{$val['gonumber']}></span>
                                                                        <label class="check check-code" data-rid="<{$val['record_id']}>">查看号码</label>
                                                                </td>
                                                                <td>(<{$val['ip']}>)</td>
                                                        </tr>
                                                        <{/foreach}>
                                                        </tbody>
                                                </table>
                                            <{else}>
                                            <div class="tip-null"></div>
                                            <{/if}>
                                            <{if count($buyers) == 10}>
                                                <div class="load-more mt20 tc" id="buy-list-pagenation">
                                                    <a href="javascript:void(0);" class="buy-list" data-sid="<{$item['goods_id']}>">点击加载更多</a>
                                                </div>
                                            <{/if}>
                                        </div>
                                        <div class="list participateIn">
                                            <{if $olds}>
                                                <table>
                                                    <tr>
                                                        <th>幸运伙伴</th><th>参与时间</th><th>参与次数</th><th>期数</th><th>幸运号码</th><th></th>
                                                    </tr>
                                                    <tbody class="list-box">
                                                    <{foreach from=$olds item=val}>
                                                    <tr>
                                                        <td><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>" /><em><{$val['nickname']}></em></a></td>
                                                        <td class="time"><{$val['time']}></td>
                                                        <td><span><{$val['num']}></span></td>
                                                        <td>第<{$val['qishu']}>期</td>
                                                        <td><{$val['q_user_code']}></td>
                                                        <td><a href="<{$val['lottery_url']}>" target="_blank">查看详情</a></td>
                                                    </tr>
                                                    <{/foreach}>
                                                    </tbody>
                                                </table>
                                             <{else}>
                                                <div class="tip-null"></div>
                                            <{/if}>
                                            <{if count($olds) == 10}>
                                            <div class="load-more mt20 tc" id="old-period-pagenation">
                                                <a href="javascript:void(0);" class="old-period" data-sid="<{$item['_sid']}>">点击加载更多</a>
                                            </div>
                                            <{/if}>
                                        </div>
                                    </div>
					<script type="text/javascript">
						$(function(){
							//查看夺宝号
							$("body").delegate('.duobao-detail .product .content .tab-con .participateIn table tr .check',"click",function(e){
								$(this).siblings('.check-num').stop(true).fadeIn();
								e.stopPropagation();
							});
							$(".check-num").click(function(e){
								e.stopPropagation();
							});
							$(document.body).click(function(){
								$(".check-num").fadeOut();
							});
						})
					</script>
				</div>
			</div>
			<div class="duobao-right fr">
				<{include file="lottery/public_right.html"}>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<{include file="lottery/code_pop.html"}>
	<script type="text/javascript" src="<{$style_dir}>/js/duobao.widget.js"></script>
	<script type="text/javascript" src="<{$style_dir}>/js/jquery.cookie.js"></script>
<!--底部-->
    <{include file="public/footer.html"}> 